package org.example.demo1startjava17.designPattern.cStructuralPatterns.c1DecoratorPattern.demo1;

import org.springframework.stereotype.Component;

@Component
public class SimpleOrderService implements OrderService {
    @Override
    public double applyDiscount(double orderTotal) {
        // 默认情况下，没有任何折扣
        return orderTotal;
    }
}
